<template>
  <footer class="footer">
    <div class="footer-container">
      <!-- 左侧Logo和语言选择 -->
      <div class="footer-left">
        <img src="@/assets/picture/logo.png"  class="footer-logo" />
        <select class="language-select">
          <option>中文简体</option>
        </select>
      </div>

      <!-- 中间导航栏 -->
      <div class="footer-middle">
        <div class="footer-column">
          <h4>关于我们</h4>
          <ul>
            <li><a href="#company-culture">企业简介</a></li>
            <li><a href="#rules">企业文化</a></li>
            <li><a href="#events">荣誉照片</a></li>
            <li><a href="#products">我们的产品</a></li>
          </ul>
        </div>
        <div class="footer-column">
          <h4>企业产品</h4>
          <ul>
            <li><a href="#company-news">主打产品</a></li>
            <li><a href="#reports">更多产品</a></li>
          </ul>
        </div>
        <div class="footer-column">
          <h4>企业产品定制</h4>
          <ul>
            <li><a href="#csr-news">颜色选择</a></li>
            <li><a href="https://public.bytedance.com" target="_blank">参数选择</a></li>
          </ul>
        </div>
        <div class="footer-column">
          <h4>联系我们</h4>
          <ul>
            <li><a href="/contact" target="_blank">联系方式</a></li>
          </ul>
        </div>
      </div>

      <!-- 底部版权信息 -->
      <div class="footer-bottom">
        <p>&copy; 万宠科技 2024 版权所有</p>
        <p>京公网安备1100000202068号 京ICP备12025439号-7</p>
      </div>
    </div>
  </footer>
</template>

<script>
export default {
  name: 'Footer',
};
</script>

<style scoped>
/* 页脚整体样式 */
.footer {
  background-color: #f4f4f4;
  color: #333;
  padding: 30px 20px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  position: relative; /* 确保内元素绝对定位有效 */
}

/* 内部容器布局 */
.footer-container {
  max-width: 1200px;
  height: 300px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  position: relative; /* 为版权信息提供相对定位参考 */
}

/* 左侧Logo和语言选择 */
.footer-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* 向左对齐 */
  margin-bottom: 20px;
  transform: translate(-20px, -10px); /* 向左和向上移动 */
}
.footer-logo {
  height: 130px;
  margin-bottom: 20px;
}
.language-select {
  padding: 5px 10px;
  border: 1px solid #333;
  background: transparent;
  color: #333;
  border-radius: 4px;
  align-items: flex-start; /* 向左对齐 */
  margin-bottom: -30px;
  transform: translate(16px, 0px);
}

/* 中间导航布局 */
.footer-middle {
  flex: 3;
  display: flex;
  justify-content: flex-end; /* 向右对齐 */
  flex-wrap: wrap;
  margin-right: -100px;
}
.footer-column {
  flex: 1;
  min-width: 150px;
}
.footer-column h4 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
}
.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-column li {
  margin-bottom: 5px;
}
.footer-column a {
  color: #333;
  text-decoration: none;
}
.footer-column a:hover {
  text-decoration: underline;
}

/* 底部版权信息 */
.footer-bottom {
  position: absolute;
  right: 10px;
  bottom: 100px;
  text-align: right; /* 文字右对齐 */
  font-size: 12px;
  opacity: 0.8;
}
</style>
